package org.suk.dp.observer;

/**
 * Description: <br/>
 * @version V1.0  2017/6/20 21:12  by 石冬冬(dongdong.shi@ucarinc.com) - Heil Hitler
 */
public class Client {
    public static void main(String[] args) {
        Secretary secretary = new Secretary();
        Observer tongshi1 = new StockObserver("塔里齐",secretary);
        Observer tongshi2 = new NBAObserver("撒每罗",secretary);
        secretary.attach(tongshi1);
        secretary.attach(tongshi2);
        secretary.setAction("老板回来了！");
        secretary.notice();
    }
}
